package com.hancai.mapper;

import com.hancai.commons.DataScope;
import com.hancai.model.TRecord;
import com.hancai.query.RecordQuery;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author super
 */
@Repository
public interface TRecordMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(TRecord record);

    int insertSelective(TRecord record);

    TRecord selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(TRecord record);

    int updateByPrimaryKey(TRecord record);

    @DataScope(tableAlias = "tr",tableField = "create_by")
    List<TRecord> selectRecordByPage(RecordQuery query);

    TRecord selectDetailByPrimaryKey(Integer id);

    int deleteByIds(List<String> idList);
}
